package cn.itcast.es.service;

import cn.itcast.es.pojo.ESDemoBean;
import org.springframework.data.domain.Page;

import java.util.Iterator;
import java.util.List;

/**
 * Created by bothin
 * At 2020/4/2 10:41
 * Description:
 */
public interface IESDemoService {

    void createIndex();

    void deleteIndex(String index);

    void save(ESDemoBean docBean);

    void saveAll(List<ESDemoBean> list);

    Iterator<ESDemoBean> findAll();

    Page<ESDemoBean> findByContent(String content);

    Page<ESDemoBean> findByFirstCode(String firstCode);

    Page<ESDemoBean> findBySecordCode(String secordCode);

    Page<ESDemoBean> query(String key);
}
